package 品牌管理;

public class Brand {
    public static void main(String[] args) {
        Brand brand = new Brand(1, "三只松鼠",
                "松鼠公司", 99, "吃了不上火", 1);
        System.out.println(brand);
    }
    private int id;
    private String brandName;
    private String companyName;
    private int ordered;
    private String description;
    private int status;
    public Brand(){

    }
    public Brand(int id,String brandName,
                 String companyName,int ordered,
                 String description,int status){
        this.id=id;
        this.brandName=brandName;
        this.ordered=ordered;
        this.description=description;
        this.status=status;
    }
////    放是set/取是get
//
//    //   第1种
//    public void setId(int id){
//        this.id=id;
//    }
//    public int getId() {
//        return this.id;
//    }


    @Override
    public String toString() {
        return "Brand{" +
                "id=" + id +
                ", brandName='" + brandName + '\'' +
                ", companyName='" + companyName + '\'' +
                ", ordered=" + ordered +
                ", description='" + description + '\'' +
                ", status=" + status +
                '}';
    }

    //          第2种
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public int getOrdered() {
        return ordered;
    }

    public void setOrdered(int ordered) {
        this.ordered = ordered;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
